package com.fyp.client.ptma.model;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name = "downloader")
public class Downloader
{
	@Element(name = "owner", required = false)
	private User user = new User();
	@Element(required = false)
	private String deviceId;
	@Element(required = false)
	private String googleRegId;
	@Element(required = false)
	private String deviceOs;

	public String getDeviceOs()
	{
		return deviceOs;
	}

	public void setDeviceOs(String deviceOs)
	{
		this.deviceOs = deviceOs;
	}

	public String getGoogleRegId()
	{
		return googleRegId;
	}

	public void setGoogleRegId(String googleRegId)
	{
		this.googleRegId = googleRegId;
	}

	public String getDeviceId()
	{
		return deviceId;
	}

	public void setDeviceId(String deviceId)
	{
		this.deviceId = deviceId;
	}

	@Element(name = "myEmail", required = false)
	private String email;

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public User getUser()
	{
		return user;
	}

	public void setUser(User user)
	{
		this.user = user;
	}

	@ElementList(name = "applications", required = false)
	private List<Application> applications = new ArrayList<Application>();

	public List<Application> getApplications()
	{
		return applications;
	}

	public void setApplications(List<Application> applications)
	{
		this.applications = applications;
	}

}
